<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2015/11/30
  Time: 16:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%
    //设置无缓存
    response.setHeader("progma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    String ctx = request.getContextPath();
    request.setAttribute("ctx", ctx);
%>

<html>
<head>
    <title>知乎话题</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="鸟趣后台管理系统">
    <meta http-equiv="description" content="鸟趣后台管理系统">
    <link rel="stylesheet" href="${ctx}/script/jquery-easyui/themes/default/easyui.css"/>
    <link rel="stylesheet" href="${ctx}/script/jquery-easyui/themes/icon.css"/>
    <script src="${ctx}/script/jquery.min.js" type="text/javascript"></script>
    <script src="${ctx}/script/jquery-easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="${ctx}/script/jquery-easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $.ajaxSetup({
            cache: false //关闭AJAX相应的缓存
        });
        var ctx = "${ctx}";
        function sendMess(type) {
            var obj = {};
            obj.dataType = "text";
            obj.url = "${ctx}/admin/server/setServer";
            obj.data = {};
            obj.data.mess = type;
            obj.success = function (mess) {
                $("#mess").html(mess);
            }
            $.ajax(obj);
        }
    </script>
</head>
<body>
<div id="win" class="easyui-window" title="服务管理" style="width:600px;height:400px"
     data-options="iconCls:'icon-save',modal:true">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',split:true" style="height:100px">
            <div style="color: red;text-align: center" id="mess">

            </div>
        </div>
        <div data-options="region:'center'">
            <table>
                <tr>
                    <td>
                        <a href="javascript:sendMess('A1')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-ok'">启动解析知乎话题服务</a>
                    </td>
                    <td>
                        <a href="javascript:sendMess('A0')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-no'">停止解析知乎话题服务</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="javascript:sendMess('B1')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-ok'">启动解析知乎话题PAGE服务</a>
                    </td>
                    <td>
                        <a href="javascript:sendMess('B0')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-no'">停止解析知乎话题PAGE服务</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="javascript:sendMess('C1')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-ok'">启动解析知乎话题LINK服务</a>
                    </td>
                    <td>
                        <a href="javascript:sendMess('C0')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-no'">停止解析知乎话题LINK服务</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="javascript:sendMess('D1')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-ok'">启动趣图服务</a>
                    </td>
                    <td>
                        <a href="javascript:sendMess('D0')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-no'">停止趣图服务</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="javascript:sendMess('E1')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-ok'">启动趣图Page服务</a>
                    </td>
                    <td>
                        <a href="javascript:sendMess('E0')" class="easyui-linkbutton"
                           data-options="iconCls:'icon-no'">停止趣图Page服务</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>
